#include "../Util/Util.h"

#ifndef _DATABASE_CSR_H
#define _DATABASE_CSR_H 

class CSR
{
public:
	unsigned pre_num;
	unsigned w;
	std::vector<unsigned> *id2vid;
    std::map<unsigned, unsigned> *vid2id;
	std::vector<unsigned> *offset_list;
	std::vector<unsigned> *adjacency_list;
	bool *valid;
	CSR();
	CSR(unsigned pnum);
	~CSR();
	void init(unsigned pnum);
	void compress(unsigned w);
};

#endif //_DATABASE_CSR_H
